<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="Public/Admin/css/style.css" type="text/css" rel="stylesheet" />
<link href="Public/Admin/css/skin/fonts/font-awesome.min.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="Public/Admin/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="Public/Admin/js/effect.js"></script>
<script type="text/javascript" src="Public/Admin/js/common.js"></script>
</head>

<body class="mainbody">
<!--导航栏-->
<div class="location">
	<a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
	<!--加target="_blank"，防止在右侧的mainframe显示-->
    <a href="<?php echo U('Index/index')?>" class="home" target="_blank"><i></i><span>首页</span></a>
    <i class="arrow"></i>
    <span>商品管理</span>
    <i class="arrow"></i>
    <span>商品列表</span>
</div>
<!--/导航栏-->

<!--工具栏-->
<div id="floatHead" class="toolbar-wrap" style="height:52px;">
	<div class="toolbar" style="width:1693px;">
    	<div class="box-wrap">
        	<!--左-->
            <div class="l-list">
            	<ul class="icon-list">
                	<li><a class="add" href="<?php echo U('Goods/add')?>"><i></i><span>新增</span></a></li> 
                	<!--<li><a id="btnDelete" class="del" href="<?php echo U('Arc/recycle')?>"><i></i><span>回收站</span></a></li>-->                  
                </ul>                
            </div>
        </div>
    </div>
</div>
<!--/工具栏-->

<!--列表-->
<div class="table-container">	
	<!--文字列表-->	
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ltable">
    	<tbody>
        	<tr class="odd_bg">
              <th width="12%">商品ID</th>
              <th align="left">商品名称</th>
              <!--<th align="left" width="6%">商品货号</th>
              <th align="left" width="6%">单位</th>
              <th align="left" width="6%">市场价</th>
              <th align="left" width="6%">商城价</th>
              <th align="left" width="6%">总库存</th>
              <th align="left" width="6%">列表图</th>
              <th align="left" width="6%">点击率</th>-->
              <th align="left" width="12%">上架时间</th>
              <th width="12%">操作</th>            
            </tr>
            
            <?php foreach ($data as $v){?>
            <tr>
              <td align="center"><?php echo $v['gid']?></td>
              <td><a href="#"><?php echo $v['gname']?></a></td>
              <!--<td><?php echo $v['gnumber']?></td>
              <td><?php echo $v['unit'] ?></td>
              <td><s><?php echo $v['marketprice']?></s></td>
              <td><?php echo $v['shopprice']?></td>
              <td><?php echo $v['stock']?></td>
              <td><?php echo $v['list_pic']?></td>
              <td><?php echo $v['click']?></td>-->
              <td><?php echo date('Y-m-d H:i:s',$v['shelves_time'])?></td>
              <td align="center">
              	<a href="<?php echo U('GoodsList/index',array('goods_gid'=>$v['gid']))?>">货品列表</a>
                <a href="<?php echo U('Goods/edit',array('gid'=>$v['gid']))?>">编辑</a>
                <a href="javascript:if(confirm('确认删除吗？确认删除会删除goods_attr和detail表中数据!')) location.href='<?php echo U('Goods/del',array('gid'=>$v['gid']))?>';">删除</a>
              </td>
            </tr>
            <?php }?>
            
        </tbody>
    </table>
    <!--/文字列表-->
</div>
<!--/列表-->

<!--内容底部-->
<!--高20的空间-->
<div class="line20"></div>
<!--分页-->
<div class="pagination">
	<ul>
  		<?php echo $page?>
	</ul>
</div>
<!--/内容底部-->
</body>
</html>
